﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GuiaVinum.Model;

namespace GuiaVinum.Repository
{
    public class GuiaVinum : DbContext, IDisposedTracker
    {
        public bool IsDisposed { get; set; }

        protected override void Dispose(bool disposing)
        {
            IsDisposed = true;
            base.Dispose(disposing);
        }

        public Cosecha GetCosecha(int id)
        {
            var cosecha = new Cosecha();

            cosecha.Id = 1;
            cosecha.Anio = 2010;
            cosecha.Descripcion = "Desc";
            cosecha.Precio=new Precio();
            cosecha.Precio.Moneda = MonedaEnum.ARS;
            cosecha.Precio.Valor = 100;
            cosecha.Vino = new Vino();
            cosecha.Vino.Id = 1;
            cosecha.Vino.Nombre = "Vino1";

            return cosecha;
        }
    }
}
